package com.ziyun.erp.common.e.order;


import com.ziyun.erp.common.e.BaseEnum;

/**
 * 支付类型枚举类
 * @author guizhao
 * @date 2017年11月30日 下午1:47:55
 */
public enum PayTypeEnum implements BaseEnum {

	/**
	 * 1.alipay("支付宝")
	 */
	ALIPAY(1,"alipay","支付宝"),

	/**
	 * 2.weixin("微信支付")
	 */
	WEIXIN(2,"weixin","微信支付"),

	/**
	 * 3.upacp("银联支付")
	 */
	UPACP(3,"upacp","银联支付"),

	/**
	 * 4.credit("信用支付")
	 */
	CREDIT(4,"credit","信用支付"),

	/**
	 * 5.deposit("预存款支付")
	 */
	DEPOSIT(5,"deposit","预存款支付"),

	/**
	 * 6.cpcn("中金支付")
	 */
	CPCN(6,"cpcn","中金支付"),

	/**
	 * 7.cpcnkj("中金快捷支付")
	 */
	CPCNKJ(7,"cpcnkj","中金快捷支付"),

	/**
	 * 8.transfer("转账付款")
	 */
	TRANSFER(8,"transfer","转账付款"),

	/**
	 * 9.线下支付：现金支付
	 */
	OFFLINE_1(9,"offline_1","现金支付"),

	/**
	 * 10.线下支付：预付承兑
	 */
	OFFLINE_2(10, "offline_2", "预付承兑"),//

	/**
	 * 11.线下支付：承兑支付
	 */
	OFFLINE_3(11, "offline_3", "承兑支付"),//

	/**
	 * 12.线下支付：预付现金
	 */
	OFFLINE_4(12, "offline_4", "预付现金"),//

	/**
	 * 13.微信支付
	 */
	WEIXINJSAPI(13,"weixinjsapi","微信支付"),

	/**
	 * 14.微信支付
	 */
	WEIXINMWEB(14,"weixinmweb","微信支付"),


	/**
	 * 15 联动支付(银行卡)
	 */
	UMFBANKPAY(15, "umfbankpay", "联动支付(银行卡)"),


	/**
	 * 16 联动支付(银行卡)
	 */
	UMFUPACPPAY(16, "umfupacppay", "联动支付(银行卡)"),


	/**
	 * 17 联动支付(支付宝)
	 */
	UMFALIPAY(17, "umfalipay", "联动支付(支付宝)"),


	/**
	 * 18 联动支付(微信)
	 */
	UMFWEIXINPAY(18, "umfweixinpay", "联动支付(微信)"),

	/**
	 * 19 联动支付(微信公众号)
	 */
	UMFWEIXINPUBLICPAY(19, "umfweixinpublicpay", "联动支付(微信公众号)"),

	/**
	 * 20 联动(H5支付)
	 */
	UMFH5PAY(20, "umfh5pay", "联动(H5支付)"),

	/**
	 * 21 联动(H5微信支付)
	 */
	UMFH5WEIXINPAY(21, "umfh5weixinpay", "联动(H5微信支付)"),

	/**
	 * 22 联动(H5银联支付)
	 */
	UMFH5ALIPAY(22, "umfh5alipay", "联动(H5银联支付)"),

	/**
	 * 23 联动APP支付
	 */
	UMFAPPPAY(23, "umfapppay", "联动APP支付"),;

	private int id;
	private String code;
	private String describe;

	PayTypeEnum(int id, String code, String describe){
		this.id = id;
		this.code = code;
		this.describe = describe;
	}

	@Override
	public int toInt() {
		return id;
	}

	@Override
	public String toDescribe() {
		return describe;
	}

	@Override
	public String toCode() {
		return code;
	}
}
